package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_goods_topic;

import cn.com.api.mapper.ApiT_goods_topicMapper;

import cn.com.api.service.ApiT_goods_topicService;

/**
 * 
 **/
@Service
public class T_goods_topicServiceImplBase {
	@Autowired
	private ApiT_goods_topicMapper apiT_goods_topicMapper;
    
    // 根据id获取
	public ApiT_goods_topic findT_goods_topicById(Integer id){
		ApiT_goods_topic t_goods_topic = apiT_goods_topicMapper.findT_goods_topicById( id );
		return t_goods_topic;
	}
    
    //查看数据集
	public List<ApiT_goods_topic> findT_goods_topics(){
        List<ApiT_goods_topic> t_goods_topics = apiT_goods_topicMapper.findT_goods_topics();
		return t_goods_topics;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findT_goods_topicsByMap(HashMap condition){
        List<Map<String, Object>> t_goods_topics = apiT_goods_topicMapper.findT_goods_topicsByMap(condition);
		return t_goods_topics;
    }
    
	// 添加
	public int insertT_goods_topic(ApiT_goods_topic t_goods_topic){
		int ret_I= apiT_goods_topicMapper.insertT_goods_topic(t_goods_topic);
		return ret_I;
	}

	// 修改
	public int updateT_goods_topic(ApiT_goods_topic t_goods_topic){
		int ret_I= apiT_goods_topicMapper.updateT_goods_topic(t_goods_topic);
		return ret_I;
	}
	
    // 删除
	public int deleteT_goods_topic(Integer id){
		int ret_I= apiT_goods_topicMapper.deleteT_goods_topic( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


